home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form Main
- BorderStyle = 0 'None
- Caption = "Microsoft Internet Explorer Sim"
- ClientHeight = 945
- ClientLeft = 0
- ClientTop = 0
- ClientWidth = 1080
- Icon = "frmMain.frx":0000
- LinkTopic = "Form1"
- MaxButton = 0 'False
- Picture = "frmMain.frx":030A
- ScaleHeight = 945
- ScaleWidth = 1080
- ShowInTaskbar = 0 'False
- StartUpPosition = 3 'Windows Default
- Begin VB.Timer Timer1
- Enabled = 0 'False
- Interval = 2000
- Left = 5325
- Top = 690
- End
- Begin VB.Label Label4
- Alignment = 2 'Center
- BackColor = &H00000000&
- Caption = "Help"
- BeginProperty Font
- Name = "Arial"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00FFFFFF&
- Height = 195
- Left = 45
- TabIndex = 3
- Top = 705
- Width = 990
- End
- Begin VB.Label Label5
- BackStyle = 0 'Transparent
- Height = 360
- Left = 0
- TabIndex = 2
- Top = 0
- Width = 1075
- End
- Begin VB.Label Label3
- Alignment = 2 'Center
- BackColor = &H00000000&
- Caption = "Start"
- BeginProperty Font
- Name = "Arial"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00FFFFFF&
- Height = 195
- Left = 45
- TabIndex = 1
- Top = 420
- Width = 990
- End
- Begin VB.Image Image6
- Height = 285
- Left = 0
- Picture = "frmMain.frx":400C
- Top = 660
- Width = 1080
- End
- Begin VB.Image Image1
- Height = 285
- Left = 0
- Picture = "frmMain.frx":5968
- Top = 375
- Width = 1080
- End
- Begin VB.Label Label2
- Alignment = 2 'Center
- BackColor = &H00000000&
- BackStyle = 0 'Transparent
- Caption = "IE5 Sim"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00FFFFFF&
- Height = 180
- Left = 180
- TabIndex = 0
- Top = 90
- Width = 720
- End
- Begin VB.Image Image4
- Height = 285
- Left = 0
- Picture = "frmMain.frx":72C4
- Top = 1275
- Width = 1080
- End
- Begin VB.Image Image5
- Height = 285
- Left = 0
- Picture = "frmMain.frx":8C20
- Top = 1275
- Width = 1080
- End
- Attribute VB_Name = "Main"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Dim c
- Private Sub Form_Load()
- c = 1
- End Sub
- Private Sub Form_Unload(Cancel As Integer)
- End Sub
- Private Sub Image1_Click()
- If Label3.Caption = "Start" Then
- Label3.Caption = "Stop"
- Timer1.Enabled = True
- ElseIf Label3.Caption = "Stop" Then
- Label3.Caption = "Start"
- Timer1.Enabled = False
- End If
- End Sub
- Private Sub Image1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Image1 = Image5
- End Sub
- Private Sub Image1_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Image1 = Image4
- End Sub
- Private Sub Image6_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Image6 = Image5
- End Sub
- Private Sub Image6_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Image6 = Image4
- End Sub
- Private Sub Label3_Click()
- If Label3.Caption = "Start" Then
- Label3.Caption = "Stop"
- Timer1.Enabled = True
- ElseIf Label3.Caption = "Stop" Then
- Label3.Caption = "Start"
- Timer1.Enabled = False
- End If
- End Sub
- Private Sub Label3_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Image1 = Image5
- End Sub
- Private Sub Label3_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Image1 = Image4
- End Sub
- Private Sub Label4_Click()
- help.Show
- End Sub
- Private Sub Label4_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Image6 = Image5
- End Sub
- Private Sub Label4_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Image6 = Image4
- End Sub
- Private Sub Label5_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
- If Button = 1 Then
- ReleaseCapture
- Call SendMessage(main.hwnd, WM_NCLBUTTONDOWN, 2, 0&)
- ElseIf Button = 2 Then
- End If
- End Sub
- Private Sub Timer1_Timer()
- If c = 1 Then
- c = True
- End If
- Call SetForegroundWindow(main.hwnd)
- Dim RECT As POINTAPI, a&, b&
- Call GetCursorPos(RECT)
- a& = RECT.X
- b& = RECT.Y
- If c = True Then
- Call SetCursorPos(a& + 1, b)
- ElseIf c = False Then
- Call SetCursorPos(a& - 1, b)
- End If
- If a& = Screen.Width / Screen.TwipsPerPixelX - 1 Then
- c = False
- End If
- If a& = 0 Then
- c = True
- End If
- End Sub
-